package com.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/12/9 21:13
 * spring不扫描controller注解
 */
@ComponentScan(value = "com.springmvc", excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class})})
@Configuration
public class RootConfig {
}
